#include <iostream>
#include "SingleLinked.h"


using namespace std;

int test_wcout(void)
{
    wcout << "this " << -1 << endl;

    return 0;
}

int test_single_linked(void)
{

    wchar_t t = ' ';
    int i, n;

    SingleLinked sl;

    for(i = 0x20; i < 0x7F; i++)
    {
        sl.addItem(++t);

    }


    n = sl.getSize();
    wcout << "Count: " << n << endl;
    while(n-- > 0)
    {
        wcout << sl.nextItem() << " ";
    }
    wcout << endl;

    //sl.setItemIdx(0);

    wcout << "Current Ch: " << sl.nextItem()  << endl;
    wcout << "Current Ch: " << sl.nextItem()  << endl;

    sl.deleteItem('A');
    sl.deleteItem('*');

    n = sl.getSize();
    wcout << "Count: " << n << endl;
    while(n-- > 0)
    {
         wcout << sl.nextItem() << " ";
    }
    wcout << endl;

    return 0;
}


int main()
{
    test_single_linked();
    //test_wcout();
    return 0;
}
